#include "pngmanager.h"
#include "PngWidget.h"

#include <QtGui/QtGui>

PngManager::PngManager(QWidget *parent, Qt::WFlags flags)
	: QMainWindow(parent, flags)
{
	ui.setupUi(this);

	PngWidget* pPngWidget = new PngWidget(this);
	QScrollArea* scrollArea = new QScrollArea(this);
	scrollArea->setBackgroundRole(QPalette::Dark);
	scrollArea->setWidget(pPngWidget);
	setCentralWidget(scrollArea);

	connect(ui.mImportImage, SIGNAL(triggered()), pPngWidget, SLOT(importFiles()));
	connect(ui.mSaveImage, SIGNAL(triggered()), pPngWidget, SLOT(saveImage()));
	connect(ui.mClearImage, SIGNAL(triggered()), pPngWidget, SLOT(clearImage()));
	connect(ui.mCols, SIGNAL(valueChanged(int)), pPngWidget, SLOT(colsChanged(int)));

}

PngManager::~PngManager()
{

}

void PngManager::importImages()
{
}

void PngManager::saveImages()
{

}